// src/components/ThemeContext.ts
import { createContext, Dispatch, SetStateAction } from 'react';

interface ThemeContextType {
  theme: string;
  setTheme: Dispatch<SetStateAction<string>>;
}

// 创建 Context，默认值符合 ThemeContextType 类型
export const ThemeContext = createContext<ThemeContextType>({
  theme: 'light',
  setTheme: () => {}, // 默认值需要兼容 Dispatch<SetStateAction<string>> 类型
});
